package com.wzy.business.store.me.presenter.impl

import android.content.Context
import com.wangzhenyu.common.base.BasePreImpl
import com.wzy.business.store.me.bean.ForgetPassword
import com.wzy.business.store.me.presenter.ForgetPasswordPresenter
import kotlinx.coroutines.launch

class ForgetPasswordPresenterImpl(
    context: Context,
    private var view: ForgetPasswordPresenter.View
) :
    BasePreImpl(view), ForgetPasswordPresenter {

    //改密码
    override fun requestPersonInfoData(request: ForgetPassword) {
        mCoroutine.launch {
            view.onPersonInfoSuccess()
        }
    }

    //获取验证码
    override fun requestSmsCodeInfoData(phone: String) {
        mCoroutine.launch {
            try {
                view.onSmsCodeInfoSuccess()

            } catch (e: Exception) {
                e.printStackTrace()
            }


        }
    }
}